$(document).ready(function() {
    $.ajax({
        url: "/init/index", 
        method: "get"
    }).then(function (data) {
        var header_image_src = $(data).find("index_header_image").text();
        $("#index-header-img").attr("src", header_image_src);
        $(window).trigger("resize");
    });
    $(window).resize(function () {
       change_height();
    });
    setTimeout(change_height, 100);
});

function change_height() {
    window.parent.window.change_height("#headeriframe");
}


